//
//  Prase.m
//  SDDataTest
//
//  Created by sodao on 12-9-19.
//  Copyright (c) 2012年 sodao. All rights reserved.
//

#import "Prase.h"

@implementation Prase
@synthesize owner;
@synthesize shows;
@synthesize praseCount;
@synthesize dynamic;
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [super encodeWithCoder:aCoder];
    [aCoder encodeObject:self.owner forKey:kEncodePrase_owner];
    [aCoder encodeObject:self.shows forKey:kEncodePrase_shows];
    [aCoder encodeInt32:self.praseCount forKey:kEncodePrase_praseCount];
    [aCoder encodeObject:self.dynamic forKey:kEncodePrase_dynamic];
}
- (id)initWithCoder:(NSCoder *)decoder {
    if (self = [super initWithCoder:decoder]) {
        self.owner = [decoder decodeObjectForKey:kEncodePrase_owner];
        self.shows = [decoder decodeObjectForKey:kEncodePrase_shows];
        self.praseCount = [decoder decodeInt32ForKey:kEncodePrase_praseCount];
        self.dynamic = [decoder decodeObjectForKey:kEncodePrase_dynamic];
    }
    return self;
}
-(id)initWithDictionary:(NSDictionary*)dictionary{
    self = [super initWithDictionary:dictionary];
    if (self) {
        
    }
    return self;
}
-(void)dealloc{
    [super dealloc];
    if(self.owner)[self.owner release];
    if(self.shows)[self.shows release];
    if(self.dynamic)[self.dynamic release];
}

@end
